package main

import "fmt"

func main() {
	var countryCapitalMap map[string] string
	countryCapitalMap = make(map[string]string)

	countryCapitalMap["France"] = "Paris"    //集合插入值
	countryCapitalMap["Italy"] = "罗马"

	for country := range countryCapitalMap {       //使用range输出每个key 对应的 value值
		fmt.Println(country,"首都是",countryCapitalMap[country])
	}

	fmt.Println(countryCapitalMap)    //打印集合
	delete(countryCapitalMap,"Italy")   //删除集合指定记录
	fmt.Println(countryCapitalMap)
}
